ProjectName.modules.ChangePassword = {
    init: function () {
        this.formValidation();
    } ,
    formValidation : function () {
        var container = $('div.pageerrorcontainer-validator');
        $("#changepasswordfrm").validate({
            errorContainer: container,
            errorLabelContainer: $("div.error-iterator", container),
            wrapper: 'div',
            rules: {
                oldpassword: {
                    required: true,
                    minlength: 5
                },
                password: {
                    required: true,
                    minlength: 5
                },
                repeatpassword: {
                    equalTo: "#password"
                }
            },
            messages: {
                oldpassword: {
                    required: "Old Password should not be blank.",
                    minlength: "Old Password should contain more than 5 characters."
                },
                password: {
                    required: "Password should not be blank.",
                    minlength: "Password should contain more than 5 characters."
                } ,
                repeatpassword: {
                    equalTo: "Password and Repeat password doesnot match."
                }
            }
        });
    }
}
